package io.aircraft.modules.wms.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.aircraft.common.entity.WmsBaseEntity;
import io.aircraft.modules.wms.dto.PurchaseDetailDTO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 采购单据
 *
 * @author cycle gengruyi01@163.com
 * @since 1.0.0 2022-10-16
 */
@Data
@TableName("wms_purchase")
public class PurchaseEntity extends WmsBaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
	private Long purchaseId;
    /**
     * 订单编号
     */
	private String purchaseNo;
    /**
     * 订单类型
     */
	private String purchaseType;
    /**
     * 来源系统
     */
    @TableField(fill = FieldFill.INSERT)
	private String purchaseSystem;
    /**
     * 商品编号
     */
	private String spuNo;
    private String lotNo;
    /**
     * 需求数量
     */
    private BigDecimal amount;
    /**
     * 所属站台
     */
    private String stationNo;
    /**
     * 订单状态
     */
	private Integer purchaseSt;
    /**
     * 备注
     */
	private String comments;

	@TableField(exist = false)
    private List<PurchaseDetailDTO> purchaseDetailList;
}